package com.hxf.dao.user;

import java.util.List;

import com.hxf.dao.BaseDao;
import com.hxf.dto.AdminRoleDto;
import com.hxf.dto.AdminUserDto;
import com.hxf.dto.AdminUserRoleDto;
import com.hxf.dto.ReturnData;
import com.hxf.dto.RoleDto;
import com.hxf.dto.UserDto;
import com.hxf.exception.DaoLevelException;

public interface AdminUserDao extends BaseDao{

	/**
	 * 联盟管理员信息
	 * @param adminUserDto
	 * @param targetPage
	 * @param pageSize
	 * @return
	 * @throws DaoLevelException
	 */
	public ReturnData<AdminUserDto> findAdminUser(AdminUserDto adminUserDto, int targetPage, int pageSize)throws DaoLevelException;
	
	/**
	 * 后台管理员登陆
	 * @param userDto
	 * @return
	 * @throws DaoLevelException
	 */
	public int loginUser(AdminUserDto userDto)throws DaoLevelException;
	
	/**
	 * 删除原有的权限
	 * @param userId
	 * @return
	 * @throws DaoLevelException
	 */
	public int deleteUserRoleByUserId(Integer userId) throws DaoLevelException;
	
	public List<RoleDto> findByUserRole(AdminUserDto urDto)throws DaoLevelException;
}
